package com.service;

import java.util.List;
import java.util.Map;

import com.beans.User;
import org.apache.ibatis.annotations.Mapper;
import com.beans.Book;

@Mapper
public interface BookService {
    int addBook(Book user);

    Integer updateBook(Book user);

    int deleteBook(int id);

    Book getBookById(int id);

    List<Book> getAllBook();

    List<Book> getBooks(String userName);

    Map<String,Object> queryByPage(Book book, Integer page, Integer limit);
}

